import 'reset-css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
//引入持久化插件
import persist from 'pinia-plugin-persistedstate'

import App from './App.vue'
import router from './router'
// 全局注册echarts
import VueEcharts from 'vue-echarts'
import 'echarts'

const app = createApp(App)

//创建pinia实例,使用持久化插件
app.use(createPinia().use(persist))
app.use(router)
app.component('v-chart', VueEcharts)
app.mount('#app')
